import http from "@utils/request";
import { ReqChatTypes, RespChatTypes,RespTokenTypes } from "@/types/chat";
//获取token接口
export const getToken = (openId: string): Promise<RespTokenTypes> => {
	return http.post('/bdp/ai/System/AiOrXcx/getToken', { openId }) 
  }

//请求对话接口
export const reqChat = (data: ReqChatTypes): Promise<RespChatTypes> => {
	return http.post('/bdp/ai/System/AiOrXcx/getAiXcx', data)
}